import type Login_Logins from "@/dto/request/login_logins"
import type Response_Dto from "@/dto/response/Api_Result"
import request from "@/utils/request"

/**
 * 管理员登录
 * @param obj 
 * @returns 
 */
export const logins = (obj: Login_Logins): Promise<Response_Dto> => {
    return request({
        url: 'api/Login/Logins',
        method: 'POST',
        data: obj
    })
}

/**
 * 检查用户是否登录
 * @returns 
 */
export const check_login = (): Promise<Response_Dto> => {
    return request({
        url: 'api/Login/Check_Login',
        method: 'GET',

    })
}